.class public final Lcom/burstly/lib/ui/BurstlyViewConfigurator;
.super Ljava/lang/Object;
.source "BurstlyViewConfigurator.java"


# static fields
.field private static final BURSTLY_SCHEME:Ljava/lang/String; = "http://burstly.com/lib/ui/schema"

.field private static final BURSTLY_VIEW_ID:Ljava/lang/String; = "burstlyViewId"

.field private static final CR_PARAMS:Ljava/lang/String; = "crParams"

.field private static final DEFAULT_SESSION_LIFE:Ljava/lang/String; = "defaultSessionLife"

.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final MAX_AD_SIZE:Ljava/lang/String; = "maxAdSize"

.field private static final MAX_AD_SIZE_PATTERN:Ljava/util/regex/Pattern; = null

.field private static final PUBLISHER_ID:Ljava/lang/String; = "publisherId"

.field private static final PUBLISHER_ID_PATTERN:Ljava/util/regex/Pattern; = null

.field private static final PUB_TARGETING_PARAMS:Ljava/lang/String; = "pubTargetingParams"

.field private static final TAG:Ljava/lang/String; = "BurstlyViewConfigurator"

.field private static final USE_CACHED_RESPONSE:Ljava/lang/String; = "useCachedResponse"

.field private static final ZONE_ID:Ljava/lang/String; = "zoneId"

.field private static final ZONE_ID_PATTERN:Ljava/util/regex/Pattern;


# instance fields
.field private mAttributes:Landroid/util/AttributeSet;

.field private final mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 45
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 103
    const-string v0, "[\\w-]{22}"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->PUBLISHER_ID_PATTERN:Ljava/util/regex/Pattern;

    .line 104
    const-string v0, "[\\d]{19}"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->ZONE_ID_PATTERN:Ljava/util/regex/Pattern;

    .line 105
    const-string v0, "[0-9]+x[0-9]+"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->MAX_AD_SIZE_PATTERN:Ljava/util/regex/Pattern;

    .line 106
    return-void
.end method

.method constructor <init>(Lcom/burstly/lib/ui/BurstlyView;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 123
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 124
    iput-object p1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    .line 125
    return-void
.end method

.method private extractAndApplyBurstlyViewId()V
    .locals 6

    .prologue
    .line 153
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v2, "http://burstly.com/lib/ui/schema"

    const-string v3, "burstlyViewId"

    invoke-interface {v1, v2, v3}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 154
    .local v0, viewIdId:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 155
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "Setting burstly view id to: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 156
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/ui/BurstlyView;->setBurstlyViewId(Ljava/lang/String;)V

    .line 158
    :cond_0
    return-void
.end method

.method private extractAndApplyCrParams()V
    .locals 6

    .prologue
    .line 164
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v2, "http://burstly.com/lib/ui/schema"

    const-string v3, "crParams"

    invoke-interface {v1, v2, v3}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 165
    .local v0, crParamsId:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 166
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "Setting CR params to: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 167
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/ui/BurstlyView;->setCrParms(Ljava/lang/String;)V

    .line 169
    :cond_0
    return-void
.end method

.method private extractAndApplyDefaultSessionLife()V
    .locals 6

    .prologue
    const/4 v4, -0x1

    .line 175
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v2, "http://burstly.com/lib/ui/schema"

    const-string v3, "defaultSessionLife"

    invoke-interface {v1, v2, v3, v4}, Landroid/util/AttributeSet;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    .line 176
    .local v0, sessionLife:Ljava/lang/Integer;
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-eq v1, v4, :cond_0

    .line 177
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "Setting default session life to: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 178
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/burstly/lib/ui/BurstlyView;->setDefaultSessionLife(I)V

    .line 180
    :cond_0
    return-void
.end method

.method private extractAndApplyMaxAdSize()V
    .locals 12

    .prologue
    const/4 v11, 0x2

    const/4 v8, -0x1

    const/4 v10, 0x1

    const/4 v9, 0x0

    .line 243
    iget-object v4, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v5, "http://burstly.com/lib/ui/schema"

    const-string v6, "maxAdSize"

    invoke-interface {v4, v5, v6}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 244
    .local v2, maxAdSize:Ljava/lang/String;
    if-eqz v2, :cond_0

    .line 245
    invoke-static {v2}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->verifyAdMaxSizeString(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 246
    sget-object v4, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v5, "BurstlyViewConfigurator"

    const-string v6, "Setting max ad size to: {0}"

    new-array v7, v10, [Ljava/lang/Object;

    aput-object v2, v7, v9

    invoke-virtual {v4, v5, v6, v7}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 247
    const-string v4, "x"

    invoke-virtual {v2, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 248
    .local v0, dimentions:[Ljava/lang/String;
    aget-object v4, v0, v9

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/burstly/lib/util/Utils;->getIntValue(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v3

    .line 249
    .local v3, w:I
    aget-object v4, v0, v10

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/burstly/lib/util/Utils;->getIntValue(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 250
    .local v1, h:I
    if-lez v3, :cond_1

    if-lez v1, :cond_1

    .line 251
    iget-object v4, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v4, v3, v1}, Lcom/burstly/lib/ui/BurstlyView;->setMaxAdSize(II)V

    .line 264
    .end local v0           #dimentions:[Ljava/lang/String;
    .end local v1           #h:I
    .end local v3           #w:I
    :cond_0
    :goto_0
    return-void

    .line 253
    .restart local v0       #dimentions:[Ljava/lang/String;
    .restart local v1       #h:I
    .restart local v3       #w:I
    :cond_1
    sget-object v4, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v5, "BurstlyViewConfigurator"

    const-string v6, "BurstlyView: \'\'{0}\'\', maxAdSize \'\'{1}\'\', Zero or negative sized max size omitted."

    new-array v7, v11, [Ljava/lang/Object;

    iget-object v8, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v8}, Lcom/burstly/lib/ui/BurstlyView;->getBurstlyViewId()Ljava/lang/String;

    move-result-object v8

    aput-object v8, v7, v9

    aput-object v2, v7, v10

    invoke-virtual {v4, v5, v6, v7}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 258
    .end local v0           #dimentions:[Ljava/lang/String;
    .end local v1           #h:I
    .end local v3           #w:I
    :cond_2
    sget-object v4, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v5, "BurstlyViewConfigurator"

    const-string v6, "BurstlyView: \'\'{0}\'\', maxAdSize \'\'{1}\'\', provided in xml layout is incorrect and omitted. Should be WIDTHxHEIGHT in dp."

    new-array v7, v11, [Ljava/lang/Object;

    iget-object v8, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v8}, Lcom/burstly/lib/ui/BurstlyView;->getBurstlyViewId()Ljava/lang/String;

    move-result-object v8

    aput-object v8, v7, v9

    aput-object v2, v7, v10

    invoke-virtual {v4, v5, v6, v7}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method private extractAndApplyPubTargetingParams()V
    .locals 6

    .prologue
    .line 204
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v2, "http://burstly.com/lib/ui/schema"

    const-string v3, "pubTargetingParams"

    invoke-interface {v1, v2, v3}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 205
    .local v0, pubTargetingParamsId:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 206
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "Setting pub targeting to: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 207
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/ui/BurstlyView;->setPubTargetingParams(Ljava/lang/String;)V

    .line 209
    :cond_0
    return-void
.end method

.method private extractAndApplyPublisherId()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 186
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v2, "http://burstly.com/lib/ui/schema"

    const-string v3, "publisherId"

    invoke-interface {v1, v2, v3}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 187
    .local v0, publisherIdId:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 188
    invoke-static {v0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->verifyPublisherIdString(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 189
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "Setting pub id to: {0}"

    new-array v4, v7, [Ljava/lang/Object;

    aput-object v0, v4, v6

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 190
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/ui/BurstlyView;->setPublisherId(Ljava/lang/String;)V

    .line 198
    :cond_0
    :goto_0
    return-void

    .line 192
    :cond_1
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "BurstlyView: \'\'{0}\'\', publisher id \'\'{1}\'\', provided in xml layout is incorrect and omitted. Should be 22 long with alphanumeric and \'\'-\'\' and \'\'_\'\'."

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v5}, Lcom/burstly/lib/ui/BurstlyView;->getBurstlyViewId()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v6

    aput-object v0, v4, v7

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method private extractAndApplyUseCachedResponse()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 215
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v2, "http://burstly.com/lib/ui/schema"

    const-string v3, "useCachedResponse"

    invoke-interface {v1, v2, v3, v6}, Landroid/util/AttributeSet;->getAttributeBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v0

    .line 217
    .local v0, useCachedResponseId:Z
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "Setting use cached response to: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    aput-object v5, v4, v6

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 218
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/ui/BurstlyView;->setUseCachedResponse(Z)V

    .line 219
    return-void
.end method

.method private extractAndApplyZoneId()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 225
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    const-string v2, "http://burstly.com/lib/ui/schema"

    const-string v3, "zoneId"

    invoke-interface {v1, v2, v3}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 226
    .local v0, zoneIdId:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 227
    invoke-static {v0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->verifyZoneIdString(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 228
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "Setting zone id to: {0}"

    new-array v4, v7, [Ljava/lang/Object;

    aput-object v0, v4, v6

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 229
    iget-object v1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/ui/BurstlyView;->setZoneId(Ljava/lang/String;)V

    .line 237
    :cond_0
    :goto_0
    return-void

    .line 231
    :cond_1
    sget-object v1, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "BurstlyViewConfigurator"

    const-string v3, "BurstlyView: \'\'{0}\'\', zone id \'\'{1}\'\', provided in xml layout is incorrect and omitted. Should be 19 long all digits."

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v5}, Lcom/burstly/lib/ui/BurstlyView;->getBurstlyViewId()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v6

    aput-object v0, v4, v7

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method private static matches(Ljava/util/regex/Pattern;Ljava/lang/String;)Z
    .locals 1
    .parameter "prtn"
    .parameter "value"

    .prologue
    .line 304
    invoke-virtual {p0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z

    move-result v0

    return v0
.end method

.method private static verifyAdMaxSizeString(Ljava/lang/String;)Z
    .locals 1
    .parameter "str"

    .prologue
    .line 293
    sget-object v0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->MAX_AD_SIZE_PATTERN:Ljava/util/regex/Pattern;

    invoke-static {v0, p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->matches(Ljava/util/regex/Pattern;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public static verifyPublisherIdString(Ljava/lang/String;)Z
    .locals 1
    .parameter "str"

    .prologue
    .line 273
    sget-object v0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->PUBLISHER_ID_PATTERN:Ljava/util/regex/Pattern;

    invoke-static {v0, p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->matches(Ljava/util/regex/Pattern;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public static verifyZoneIdString(Ljava/lang/String;)Z
    .locals 1
    .parameter "str"

    .prologue
    .line 283
    sget-object v0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->ZONE_ID_PATTERN:Ljava/util/regex/Pattern;

    invoke-static {v0, p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->matches(Ljava/util/regex/Pattern;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method


# virtual methods
.method configure(Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "attributes"

    .prologue
    .line 134
    if-nez p1, :cond_0

    .line 147
    :goto_0
    return-void

    .line 137
    :cond_0
    iput-object p1, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    .line 138
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyBurstlyViewId()V

    .line 139
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyCrParams()V

    .line 140
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyDefaultSessionLife()V

    .line 141
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyPublisherId()V

    .line 142
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyPubTargetingParams()V

    .line 143
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyUseCachedResponse()V

    .line 144
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyZoneId()V

    .line 145
    invoke-direct {p0}, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->extractAndApplyMaxAdSize()V

    .line 146
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/ui/BurstlyViewConfigurator;->mAttributes:Landroid/util/AttributeSet;

    goto :goto_0
.end method
